home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
game
/
role
/
ldmud-3.2-bin.lha
/
mud
/
doc
/
efun
/
sgn
< prev
next >
Wrap
Text File
|
2001-02-17
|
323b
|
18 lines
SYNOPSIS
int sgn (int|float arg)
DESCRIPTION
Return the sign of the argument: -1 if it's < 0, +1 if it's > 0, and
0 if it is 0.
EXAMPLES
sgn(1) - returns 1
sgn(-1.1) - returns -1
sgn(0) - returns 0
HISTORY
Introduced in LDMud 3.2.9.
SEE ALSO
abs(E)